<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateExChangingsTable extends Migration
{
    /**+
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('ex_changings', function (Blueprint $table) {
            $table->id();
            $table->integer('user_id')->comment('用户id');
            $table->string('goods_name',200)->comment('抽到的商品名称');
            $table->integer('num')->comment('商品数量');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('ex_changings');
    }
}
